package com.hfkh.keyun.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
@TableName("tb_visit_history")
public class VisitHistory implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id" ,type = IdType.AUTO) //自增
    private Integer id;//id
    @TableField("user_id")
    private Integer userId;//用户编号id
    @TableField("tb_user")
    private User user;//用户对象
    @TableField("openid")
    private String openid;//用户唯一标识
    @TableField("video_id")
    private Integer videoId;//视频编号ID
    @TableField("tb_video")
    private Video video;//视频对象
    @TableField("course_id")
    private Integer courseId;//课程编号ID
    @TableField("tb_course")
    private Course course;//课程对象
    @TableField("video_location")
    private Integer videoLocation;//历史观看视频位置(时间戳)
    @TableField(exist = false)
    private LocalDateTime createDate;//创建时间
    @TableField(exist = false)
    @TableLogic
    private Integer deleteFlags;

}
